<?php
include("../functions.php");
include("../libs/smarty.class.php");

$smarty = new Smarty();
$title = "Użytkownicy";
$smarty->assign("title",$title);

$students = array();
$students = studentsInfo();

$remove_id  = $_GET['remove_id'];
if($remove_id != ''){
    echo deleteStudent($remove_id);
    $info_action = getInfo(14);
    $students = studentsInfo();

}
$smarty->assign("info_action",$info_action);
$smarty->assign("students",$students);
$smarty->display('users.tpl');
?>
